const express = require("express");
const router = express.Router();

const extendArticle = require("../controllers/extendArticle");

router.get("/list", extendArticle.list);
router.get(
	"/getArticleByTypeAndKeyword",
	extendArticle.getArticleByTypeAndKeyword
);

router.get("/getArticleDetailById", extendArticle.getArticleDetailById);

router.post("/add", extendArticle.add);

router.post("/update", extendArticle.update);

router.post("/del", extendArticle.del);
router.post("/upload", extendArticle.upload);

module.exports = router;
